package com.zhhq.mapper;

import com.zhhq.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    User selectByPrimaryKey(Long id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    User getUserByLoginName(String loginanme);

    User login(@Param("loginname")String loginName,@Param("password")String password);

    void  deleteByLoginName(String logiName);

    int updateByLoginName(User record);

    int updatePassword(@Param("loginname")String loginName,@Param("password")String password);
}